function pullXHtml() {
  var xml = new ActiveXObject("Msxml2.DOMDocument.6.0");
  xml.async = false;
  xml.resolveExternals = true;
  xml.validateOnParse = false;
  xml.setProperty("ProhibitDTD", false);
  xml.loadXML(
    "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">" +
    "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'><head><title>simple document</title></head>" +
    "<body><p>a simple&nbsp;paragraph</p></body></html>");
  if (xml.parseError.errorCode != 0) {
    var myErr = xml.parseError;
    alert("ERROR:" + myErr.reason);
  } else {
    alert("The XHTML document was loaded successfully.");
  }
}

pullXHtml();
